package com.rockcent.service.impl;

import com.rockcent.mall.lib.domain.Mall;
import com.rockcent.mall.lib.repository.MallRepository;
import com.rockcent.service.MallSrv;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zhangjh on 2017/3/31.
 */
@Service
public class MallSrvImpl implements MallSrv {
    @Autowired
    private MallRepository mallRepository;

    @Override
    public void update(Mall mall) {
        mallRepository.save(mall);
    }

    @Override
    public Mall findOne(Long mallId) {
        return mallRepository.findOne(mallId);
    }
}
